import request from "@/api/request";
import common from "@/lib/common";
let baseURL = "";
if (process.env.NODE_ENV === 'production') {
    baseURL = common.server.toutiao;
} else {
    baseURL = common.devServer.toutiao;
}

export default {
    hot(success, fail) {
        request.get({
            url: `${baseURL}/hot-event/hot-board/?origin=toutiao_pc`,
            success: (res) => {
                success(res)
            },
            fail: fail,
        })
    },
}